package cn.edu.zafu.bigdata.x.xiejunjie;

public abstract class Shape {
    public abstract double area();
    public abstract double perimeter();
    public final void display() {
        System.out.println("Shape:"+this.getClass().getSimpleName());
        System.out.println("Area:"+this.area());
        System.out.println("Perimeter:"+this.perimeter());
    }
}
